package com.example.bluetoothchatcore;

import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.example.bluetoothcore.R;

public class InfoActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info);
        TextView tips=(TextView)findViewById(R.id.tv_tips);
        Intent intent=getIntent();
        String appType=intent.getStringExtra(Constants.appType);
        if (appType.equals(Constants.appTypeClient)){
            tips.setText(getResources().getString(R.string.intro_message_client));
        }else if(appType.equals(Constants.appTypeServer)){
            tips.setText(getResources().getString(R.string.intro_message_server));
        }

    }
}
